﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Mimosa_Monitor
{
    /// <summary>
    /// DBConnectionWindow.xaml에 대한 상호 작용 논리
    /// </summary>
    public partial class DBConnectionWindow : Window
    {
        public string Host
        {
            get
            {
                return tbHost.Text;
            }
            set
            {
                this.tbHost.Text = value;
            }
        }

        public string User
        {
            get
            {
                return this.tbUser.Text;
            }
            set
            {
                this.tbUser.Text = value;
            }
        }

        public string Password
        {
            get
            {
                return this.tbPwd.Text;
            }
            set
            {
                this.tbPwd.Text = value;
            }
        }

        public DBConnectionWindow()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
        }
    }
}
